package com.smcdd.cdb.dbo.cdb_dbo.ui.utils;


import com.smcdd.cdb.dbo.cdb_dbo.service.entity.ContactBean;
import com.smcdd.cdb.dbo.cdb_dbo.service.entity.Tain_v2;

import java.util.Comparator;

public class Pinyin2Comparator implements Comparator<Tain_v2>
{

	public int compare(Tain_v2 o1, Tain_v2 o2)
	{
		if (o1.getSortLetters().equals("@") || o2.getSortLetters().equals("#"))
		{
			return -1;
		} else if (o1.getSortLetters().equals("#") || o2.getSortLetters().equals("@"))
		{
			return 1;
		} else
		{
			return o1.getSortLetters().compareTo(o2.getSortLetters());
		}
	}

}
